fixed a bug in ent.create()