fix Hash#replace