Fix error when loading recent activities