Fix problems that block programs from being Uninstalled