fixed file creation bug temporarily