fix endiannesss for binary logs