fix Exception scope error