Fix patterns for reps with []