Bugfix in compactor