remove redundant modified flag