larger fix to collection.clear()