Copy list before iteration, avoid concurrent modification

closes #61