fixes index