fix for break end bug where all windows were staying together