fix: don't remove the last child from `children` array