Bug fix for loading corpora

Improves workflow