fix rounding errors and slider scale