Fix: var not defined