fix "unused var choiceIndex"