Fixed several issues with filtering on non-single post pages.