fix bug where mobile navbar couldn't be collapsed