Fixes pagination with time and vertical searching