correct the number of steps at max