fix potential report crash (divide by zero)