found another bug in plot.py