Fixes stepping when lying down.

Fixes step_action being called when lying down.
Merge pull request #6017 from xxalpha/stepfix

Fixes step_action() being called when lying down.