template settings fix