Fixed bug where number of pages was not being updated when measurements are filtered