Fixing bad bug in os walking