fixed error of log