Fixed querystring and valuescript implementation for terms stacking