fix template variables causing warnings