Fix small template bug