fixed bug that was making demo-query break