Fix "multiple definition" error when reloading templates.