Fixing miniPlot being called twice when initialization