fix two other hierarchy bugs