Fixed a bug that could result in sequences of length zero (they now become length 1)