fixed callback
Merge pull request #61 from cesardeazevedo/master

fixed callback error handling