fixed error log.