Fixed log file issue