Fix ent initialization.