fix some issues with redirects and content_query()