Fixed bug with workflows. Fixed #1309.
Merge pull request #1316 from normanjaeckel/FixWorkflowBug

Fixed bug with workflows. Fixed #1309.