fix bug in locking the sidenav on small screen sizes