fixed defect in get_var