fixed a plot widget bug preventing multiple plots