resolve problems with Exception