CompactHistory: latest fixes.