incorporate refactored weighting into fix balance
(cherry picked from commit 71ef6fb4d95aba5963d31bbec4b3ded1ee00a6f0)