fixing the weird bad index problem in docs