Fixed bug with canceling steps