fixed some errors between AI and Scene