reset array indexes after filter