fixed fragment not re-connecting properly across lifecycle changes.