on click Sub menu Items – not adding class Active

I have a menu with 3 depth levels. i am getting problem in Depth-level 2. If i click on depth-level 2 menu items it should get add class Active but i am not getting.

Depth level -1 is working fine in the same way i have done for depth-level-2 but it is not working.

“On click Menu-Item-1.2.1 or Menu-Item 1.2.2″should get Active