fix an issue with movement