Update two sum (Bug fixed)