Fixed the bug that caused true state to mess up after adding new state to graph