Fixed bug in `field_has_changed`