fixup for more resilient balance routine