Fix graph update (remove before adding otherwise mess up replacing a plot)