Fixed failure to set is_dirty