This solves the crashing from issue #58994. I don't know anything about VE, so I don't know if the output is as expected or even correct.