fixing plot.S.plot