fixed wrong creation of activity graph