Fix: variable refarence error