optimize bit and fix a document bug