Fixed undefined variable in .