fixed ai freeze waiting for den