Fix validating workflows when modes are used