Fix template settings