bugfix for form.dirty