PTFM-6835:fix divide by 0