Fix crash when hitting "m" after moving a unit