Fix for wrong inserts into prehash table.