fixing a plotting bug when clustering is not used