attempted fix to offcanvas browser compatibility issue