fixing debug_AI