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

Bug fix for #132