bug correction when creating the file: solved.