Fixed small bug with changing numPlots