Fix ModuleAttributes value will never be saved in some case.
Merge pull request #6 from lonwern/master

Fix ModuleAttributes value will never be saved in some cases.