fix resend is panic.