fixing wrong behavior when corpus sets are defined but empty