fixed bug when setting entity property of a component with the entity that the component is attached to