Fix coordination of queries with views.