make sure decoded max <= actual max after unpacking