Fix for IEnumerable and multithread