fix for repack