Fixed Duplicate menuitem functions