Fixed some issues concerning scene entity creation.