Removed unused var in _get_changed_fields (#347)