fix bug in gii template