fix the pattern of extensions