fix .removeChild() on bail