fix the first matching