Removed redundant code, fixed a command on a MenuItem.