Fixed the expected exception type