fix github error handler bug