minor clean up in CorpusUtil