Fix bugs in multiple index buffers support (part 3)