Fix some client free bugs and checksum tx issue.