Bugfix in asynchronous compaction