fixed resendtx()