correction for tgw-views.sql