bug fix when UIDNext is null