fix views
sql