应该是习惯问题吧,they 是有指代的,应该先把指代的人物写出来,要改成
After the children have done their homework,they went for a walk.