Incorrect branching code closing bracket