Bug fixed, clearing dirty state out of the form