Fix: Undefined variable

Fixes #240.