Fixed template scripts.