fix bug of getting content before tpl complied