Fixed code to walk