Fixed #61 by fixing max product objective calculation