fixed issue causing the detail fragment not to reappear after type switch.