Fix toward #1367

Filtering `$cfg['maxrowsperpage']` data