added check for fields when calling a model.set() with no changes