fixing bug in menu classing