Fixed bug that caused glitch in some LZ77 frames

This was the infamous 'Rihanna bug' (don't ask)