fixed indexing for multiclass plots