Fix leaky variable

Fixes #1