modify default template check per Foxaii's suggestion.