Fix bad use of math_clamp

Unless I'm missing something I think this will cause us to jump forward in time by a buffer on scaler change.