Error on a partial


Sorry for the newbie question.
I get the following error whith a partial:
template: theme/index.html:5:5: executing "theme/index.html" at <partial "home/teaser...>: error calling partial: template: theme/partials/home/teaser.html:16:22: executing "theme/partials/home/teaser.html" at <after 1 (.Data.Pages...>: error calling after: no items left

The related code in the partial is:
{{ range first 2 (after 1 (.Data.Pages.ByDate.Reverse)) }} <div class="hero"><a href="{{ .URL }}"><img alt="{{ .Title }}" class="img-fl" width="150" height="200" src="{{ .URL }}{{ .Params.image }}" /> <h3 class="title">{{ .Title }}</h3></a><h4>{{ .Description }}</h4> <p>{{ .Summary | markdownify | truncate 150 }}</p></div> {{ end }}

It seems that there is no enough items to display but it is not the case (more that dozen of articles for all site).
Any idea to solve this issue