fix ward query string