fixing allowed parent nodes