removeChildren bug fix