Fix issue with initial items per page

@ruimarinho please review.