Fix flash a bit because graphs will be deleted asynchronously