fix mac
change index