Correct error with resp object