fixed adding entities