Fix VT execution environment

This fixes #17262 

critical fix /cc @thatch45 @basepi