fix bug in call to corpus constructor