fixed bound checking bug in parabolic ramp