more fixes for bridge balance integer divide corner cases