Fix pruning of common sequences at start.

Hello, just a small fix.
The code was originally correct but a bug was introduced after v1.1.3.
Thanks for providing this library!
Kind regards, Paul