Fixed errors in hierarchy of profiles (rules).