Different gears have different timing settings. Aftermarket exhaust without at tune might make the bike more sensitive to the timing advance, depending on air conditions, elevation ect...sounds like the timing gets advanced when you put in gear and your fuel setting isnt calibrated to the leaner condition. Just a shot in the dark. bet 5th gear raises it the most out of all of them.