Fixing a bug causing stepping in the plots.