fixed bug for CException