fix direction of moves