fix case that there are no views