#198: move li to the inner template