Fixed a bug: menu items cannot be created.