Fix activity graph sample compilation error