added Jeff's fixes for sPlots