Fix step generation for movement using multiple axes.