fixing debug AI