small corection in badge calculation (productCount was always 1)