Additional fix to #1067. Plot lines and bands added programmatically were not removed.