bug fix: one node may have more than one classes.