fix problem with zero percents