Enabled debug and corrected a fault when compressing files