Fixed undefined variable.