Leafcompression fix