Fix an issue with the querying of the view.