fixed bug when setting teh result of workflows multiple times