fixed pagination for filtered messages list