fix findIndex