Don't set $dirty if you aren't making a change