Fix instance template