Use correct error variable names