fixing bug when checkboxes in index list