fix hanoi