fixing bug related to send null values