Fix the bug of the function CalMinMaxScaleRate did not take effect