fixed plot_splines