fix calcs and resendtx