Fix: undefined variable