Fix error of log