fix setting NULL values into nullable fields