fix cache when a packages is removed