guard against non template rewrite