Fixed the bugs in starPlot