fixes closing of conditional