Correction in findIndex of collection