Fix uninstall logic