Bug fix for #132
Merge pull request #133 from TsudaKageyu/fix-byteswap

Bug fix for #132