Update template: end is nullable