Whoops, mapping and clamping to the wrong range.