fix bugs regarding the capture child