doc-count-errors - partial fix for variables due to bugs when updating existing query
Merge pull request #174 from kazoompa/doc-count-errors

doc-count-errors - partial fix for variables due to bugs when updating existing query