fix bug : update item number when changing id