fixed a bug with parsing the url response