Fixed undefined var.