added a cheap fix to the reversed-byte bug.