Fixed graph after-refresh bug