Fixed graph resetting