cbe: fix bugs revealed by an upcoming commit

Closes #18023
6f10b11658Jacob Young committed on 3/31/2024, 12:50:48 AMparentaff71c6
5 files changedLine totals unavailable