Fix a typo in createFile.