don't regenerate self.mod_name at the end
Merge pull request #707 from boegel/fix_bugs

don't regenerate self.mod_name at the end