Fix concurrent modification error

you'd think I would have learned by now :)