bug in the simple-ai, instance.creature is undefined