gwc: fixed useless substitution of vars