Fragment switching fix