remove child immediately when calling removeChild