Fix wrong move logic.