Fixed division with zero in export results