fixed onChange issue with menu