Correct error typing