Fixed Sleeping Action

Sleeping action wasn't working correctly.