Fix range key bug on global index creation
0.7.1