Fix ImmutableHashMap rebuild bug