small bug on create model