fix group parsing