bug with duplicated records while 'create' fixed