Fixes a decoder overflow on random input