fixed modified flag