Fixed Error when changing moving type in mind