fixed small bug on create