fix gii template files
Merge pull request #1491 from chemezov/fix-gii

Fix #1490