unroll.py: fix invalid variable reference