.var test, fix some issue