Fixed undefined variable (thanks, colnpanic)