fix bug setting initial state on vertex