Fixed bad rendering of submenus