a bug fixed for direct octet read/write