temporary fix for bug regarding updating values and multiple query tree entries; QueryTree needs to be rewritten.