fix the log