fix find parent method