Handle multiple parents properly