Fixed a defect showing the menu in template