issue about root motion and montage

I have added roll animation to the character, and the root motion setting is everything. At this time, there is no problem. But when I add animation montage to the character (because I want to use animation layering), the root motion will not work, that is, pressing the roll key ,the character will roll in place. Is there any solution?
in pictue 1,no montage and animation layering
in picture 2,use montage and animation layering