Library activity fix