Fix bug causing graph to be re-initialized after configuration