Issue #22501:prevent duplicate check numbers