fixing numbering for merge search