Fixed closing issue with offcanvas menu