fixed fatal type in saving bytes