Fix extra '|' character in submenu