fixed the base query string for source