Fix exception type