Fixed the bug of creating incomplete corpus.