fix leading group separator bug