fixing metadata.lang in template