Fix character move bug