Fix Compression bug: wrong premature return.

Bug: Compression::compress method return -1 even success
Status: Fixed.