Fixes del animations when collapsing child nodes.