fixed the problem with indexes where they wouldn't select the old values index