Fix a potential crash and WIP AI fix