fix a notifications pagenation issue