Fix variables templating.