fix bytes slice