Fix bug introduced when fixing dotplot.