fix the pattern