fix model.set with null