Fixed small Ai Bug