Fix setting values on the entity.