Fixed bug on keys when collection are paginaged