Fix for menu state on page load