Fixed issue #245 for byte arrays.