Fixed two small bugs in response-parsing.