fix integrate template