Fixed ConcurrentModificationExcpetion when changing hashing function and then fast encoding