fix create view issue