fix WindowsError when no children are present