Fixed the size of a byte-swap operation. Saving window positions works