fixed active attr change when traversing backward