Fixed bug in get corpus script.