Fixed creating of ModVars.
Fixed creating of ModVars.