Fixed weight calculation.