fix divide by zero error in claims_from_events