Fixing bug when adding to corpus.