fix index.tpl $chardata