Fix bug when closing children splitters.