Solved bug painting plots on top of old ones