fix crasher in kiva parse_activty