Fixed a bug that made the program crash if the step wasn't a multiple of RealNumTraces