Fixed critical bug in auto-missions