It seems bytearray is not supported. How can I fix it myself? 