Fixed creating of ModVars.