Fix bug with page_entries cookie