This was creating an entity that had a trainer component without production queue. Which is hazardous.