fixed the problem that doesn't show the correct exception message in the system's default handler.