fix token error log problem