Fixed weighted MP calculation; see RT ticket #3993