Fix for NSGenericException (Collection was mutated while being enumerated)