fixed history plot duplication issue