Fix an off by one error in the decoder

durr durr durr