fix direction change after move