Fixes issues with registering menus in header and footer template