fixed mechnet code gen error
Merge pull request #26 from fluxtah/master

fixed mechnet codegen error