Fixed creating of ModVars.
Merge pull request #63 from cmfcmf/modvar-patch

Fixed creating of ModVars.