Added fixed for band selection and the alter table for views