Fixed log-file creation.