fixed reverseBytes