Fixed calculation of MB weights