fix for index