Fixed deadlock bug caused by initial parents not being identical