fix stupid file creation bug