Fix response parsing