Fixed navigateToStep: method so that it works both ways.