Fixed browser state restoring