Made template variable work properly