Fix bug with Exception