fix of create and update