fixed the pagination user state maintaining