Update to handle clearing the menu better from within IE