fixes divide by zero crash