Modify coordinate index, now it work properly