Fix menu item rendering bug