fixed groups validation pattern bug