Fixing issue of onload menus.