Fix reverse layer order after embedding group