Update PlotMod.cs

fixed two bugs