discount module fixes