correct workflow graph when activity labels are the sames (refs #4191)