Fix issue with the final group visibility change not hiding its children correcty.