Fix exception incompatibility.