Fix errors in document