bugfix for removeChildren