Fix StateManager not loading default stateId