Fix bug in compress.cpp