fixed the active class transitions