patch to fix resp.is_a?(Hash) bug