Fixed log to file.