Fixed undefined $ var.