fix exception when monsters move through a command exit autonomously