Fix uninstall of prefixes