bugfix for plot re-initialization