Fix a bug where a move could result in zero steps for all axis