fix bug about exception catching