Fix index bounds for 2dsphere