fixbug: set Dict value,when value != nil.