Fix byte packer max value determination