Fix document index