fixed web query, old one worked only intermittently