template manager fix