Bug fixes in make_plots.py