Fixed document bugs