fix metadata injector
Merge pull request #539 from LipuFei/fix-metadata-injector

fix metadata injector