Fix rule ref for template