Fixes log file creation