Fix bug where Views are not added on tables