fix wron exception logging