Fixed bug when setting null string