fixed bug with NSArray getting mutated while being enumerated