Fixed iterator by copying queue into iterable member. Now every iterator is independent of each other