fix theme template check