fix 64 bit string index usage