Fix bug in SQL default views.