fixed controls

calc_step() was using wrong step[] index references