fixed a few errors

the last problem i see is in Entity::CreateEntity()