fix detect active menu