fix template after API change