Added stop when the width of regions isn't unique in buildProfileMat methods