Fixed indexing bug in USX export