fix Exception bug