Fixed templatization for uninstall