max product bug fix in normalization