Fixed issue with bytearray