bugfix in corpus and print function