fix keeping collection after creating it