fix index redraw