fixed some bug nav-bar collapse when windows get small