Fix two examples which were not supplying visibleIndex the right way