fix wrong call when replying error
Merge pull request #97 from pjvds/master

fix wrong call when replying error