Fix error in create view