fix bug in fromByteString