Fix bug with rehashing downwards