fix impulse flips