Modify some templates