fix bug regarding on triggering decompress event due to incorrect condition