Fix callback issue

callback should be accessed as self.callback in error handling function.