fix removal of packages