Fixed bug with workflows. Fixed #1309.