correct some problems in the generation of views