Copies the hashset before iterating