Fixing the usage of var_define

Related to #21