fix removing gemsets, update #2267
fix globalcache