Fixed incorrect movetype checking.