Fixed log file creation