Fix when step is 0