Can't figure out what's wrong with compression/decompression