Fix invalid exception class.