fix document table