fix for potential warning in file rewriter