fix bug with auto linking parent child