Fix bytes error