Preventing product hierarchy problems