Address repeated file creation bug.