Fix for PDF tag in templates.