fix #8252, `eval` after `workspace`

Backport of c1a6b391 for 0.3.1
ref #8252