fix uncaughtException callback bug