Fixes to getNbPlot