fixed findIndex()