Fixing the usage of var_define