fix bug

fix "var" in convert