Fixed fail to get activities issue