prevent scaling too large