Fixing error with duplicated views returned from _get_views_from_file