corrects bug when activity_logs is empty