fix entity with no contexts