fix bug, to show exception message correctly