fix bug where form was tagged as dirty even if not touched