Fix overflow for high scales.