Fix integer decoder implementation