fixed query to wrong endpoint