Fix minor bug in create