fixed active class bug