- fix setting NULL value to the Entity