Fixed rehashing not working