Fixed problem with stock plot in totplot