Fix calculation of is_modified on item rep write