fix print var bug