Fixing bugs with offline transaction signing