Fixed a very subtle bug where the MainActivity would become disconnected from the real fragments on the screen, and two copies of each fragment would be created.