Fixed a bug in compression.