Fix setting of current_corpus_part