fix index bug, some docs