quirky neutral sensor switch and/or IAC unit.
neutral sensor switch behind front belt pulley at 4 o'clock position. i never precisely determined why but a faulty one will affect idle particularly on 08-10 models. with motor off....key on...red run switch on...bike in neutral....lightly feather shift lever. neutral light blink and act erratic? replace the sensor switch.
IAC unit: if it has worked itself loose from its housing you'll not only get a slight vacuum leak but erratic idle particularly in gear. servo unit probably ok but at the very least i would remove the entire air intake system MINUS the air horn...access the unit....remove and thoroughly clean both the pintel and the port it plugs into....then see what you have. use link below if this helps.
http://www.badweatherbikers.com/buel...38/634269.html