Fix exception making bug.