fixing update template