fix clearmodifiedPaths