Bug fixed.

Do not check index when there are no choises to take.