valgrind check: do not read potentially deleted variables

let's see if it solves the occational crash in test_highlevel.py