fix extraction with other template variable