fix wrong call when replying error