ensuring dirty is set properly