try to fix readByteArray