Fixed the exception type