fix bugs for <include> and render helper