fixes feed pagination logic