Fixed a bug of pattern growing process that all patterns only contain one variable.