set replace ai session to nullptr