Fixes bug for mobile menu