fix divide by zero in distribution chart