Make uninstall unlink.
Fix some bugs.