Fix some bugs in Menu model.