fix document words