Prefix repair