fix bug of doc-width check