Fix plot legend repetition.