fixes #3332 : correct use of parametrized variables