Fixed a bug in menuCtrl.