Fix Scaler Functions for great justice

with thanks to Volutar for pointing out the logical flaw.