fix bug with tags and sets in the GC