Removed variable that stores the number of merged regions in its record since the array should be the basis for this number. Less manual index tracking, the better. Thanks for problem report! PR: 27005 Reported by: skalchihin@mgsm.ru