Fixes legends for adaboost.