#17361 - avoid counting duplicated bounces multiple times