Fixes nasty bug with childNodes