fix `getBytes'