fix bug: add new query to an empty config