fix a bug associated with the indexing of USE_COORS