fix callback called twice if error
Merge remote-tracking branch 'origin/master'