another attempt to fix offcanvas bug