Found the incorrect counter update that made the decipger never finish.