Re #1752 Wrong check on the hierarchy