fixed issues on json/docinfo templates