Fix rate error and up max, min