Fixed reference to engine not being set in one of the entity
constructors