Fixed an issue with the getClass() function in the MenuCtrl