Fix awful transaction bug where offsets are wrong. Thanks, GDB!