fixed final brance closing