fix bug with Exception Enitity type