fix'ed exception code