fix issues in wechatCallback handling.