fix bool check on indices which prevented selection on index 0