fix bug in detectValueCompressAlgorithm