Don't call setProperties if none of the properties changed
Correct the check on whether a formatted variable changed