fix to not remove active class from all sub-elements