Redo template wrapper.
Use correct line index.