fixed child parent assignment