Fix plot_learning_curve function