Fixing bugs in workflow validation