Fix ahead/behind count brackets