Fix MayahAI crash.