Fixed a bug with compressing shorter sequences