Fix active bug when going back to the category you just left