fix parabolic ramp bugs