fix several points in documents