Fixed a bug with movement and recover.