Fixed menu bug on mobile devices