Fixed fragment lifecycle (hopefully).