Fixing working with byte arrays.