Fix. raise correct error.