Fix bug in break scope calculation.