Fix document bugs