fix Write pack case 1 choose bug