Changed fix for #247 to pick up history.state on initial library load