fixed Fatal Error regarding Avg Teacher plot

A certain ordering caused Fatal crashes. Changing the order made them
cease. WTF. Spent hours debugging, and traced the crash to print(p)
(print the plot) in the renderPlot fcn, but only for certain orderings
and datasets. Could NOT replicate outside of shiny.