fixed client-side indices bug