fixed segfault in multiclass parsing