fix permission error of log file.