fix base template referral