Fixed parentGroup matching when uri is undefined