Bugfix in repack