Fix document error/format