Fixes a segfault.
Fixed some small bugs.

- Insidious segfault with decompression. Compare the whole data range.