Fixed bug in MaintenanceScheduler preventing merging compactions