Fixed the walk code for one walk cycle.