Fix Some Bug about the count of AI