Fixed pagination dupes error