Fix parent menu active state detection