Fixed the ClearMenuItem bug.