fix fitToLimits