Fix issue that if the sync fails a wrong new item number is shown