Fix compaction API