fix children null reference