Small fixes in parseResponse()