Fix rehash error