AI Execution Fix

Previously AiExecute was being called even when in a menu, this was not correct behavior.