The problem may b with your carburetor. If on or more of your carburetor jets are clogged or bent it could cause an imbalanced flow of fuel to the engine. Have your carburetor checked buy a certified Harley Davidson mechanic to see if it needs to be cleaned or if it needs to be rebuilt.
First get a can of starting fluid and spray it around your intake boots and vaccum lines. If it revs up you have a definite air leak and some rubber component will need replaced. Also could be a dirty carb (plugged pilot). Most likely it is an air leak though
Erratic revving could be the result of several issues, however if it occurs without touching the bike, usually the throttle cable needs adjustment, or you need to adjust your valve-headers.