Fixed bug where page number wasn't reset when filtering