parent needs to spend time with child. it doesn't mean that we are parents child will be attached to us. children get attached to the care giver. give it time.
Slowly, Once the primary caregiver is gone, they will naturally go to the second person.
Spend more time with the LO b4 the caregiver leave, get the caregiver to slowly retreat