Fix filtering causing sticky headers to appear incorrectly.