Fixed bug - max and min rate swapped