Fix: map template rerender crash