Correction of pattern to find parameters